package com.chenyun.common.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 简单的分页对象
 * @author Lonni
 * @date 2022-07-02 11:37
 */
@ApiModel(value = "简单的分页对象")
public class SimpleQueryPage {

    /**
     * 页码
     */
    @ApiModelProperty("页码")
    private int pageIndex;
    private int pageNum;
    /**
     * 页大小
     */
    @ApiModelProperty("页大小")
    private int pageSize;




    public int getPageIndex() {
        if (pageIndex==0&&pageNum!=0){
            return pageNum;
        }
        return pageIndex;
    }

    public void setPageIndex(int pageIndex) {
        this.pageIndex = pageIndex;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }


}
